package com.fengmi.goods.controller;


import com.fengmi.goods.entity.MallGoodsCat;
import com.fengmi.goods.service.IMallGoodsCatService;
import com.fengmi.goods.vo.GoodsCatVo;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 商品类目 前端控制器
 * </p>
 *
 * @author zhuxm
 * @since 2022-03-02
 */
@RestController
@RequestMapping("/goods/cat")
public class MallGoodsCatController {


    @Autowired
    private IMallGoodsCatService goodsCatService;

    @RequestMapping("cascade")
    public List<GoodsCatVo> cascade(){
        return  goodsCatService.findGoodsCatCascade();
    }



}
